const path = require('path')

require('@babel/register')({
  extensions: [ '.es6', '.es', '.js', '.mjs', '.ts' ],
  cwd: path.join(__dirname, '../..'),
  presets: [
    '@babel/preset-env',
    '@babel/preset-typescript',
  ],
})
